

Pod::Spec.new do |s|
  s.name             = "HHUIKit"
  s.version          = "1.0.0"
  s.summary          = "iOS UI kit"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
  An optional longer description of Huihui Health
  
  | * Markdown format.
  | * Don't worry about the indent, we strip it!
  DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/HHUIKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/HHUIKit.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.platform     = :ios, '8.0'
  s.requires_arc = true
  s.default_subspec = 'Core'
  
  #核心模块
  s.subspec 'Core' do |core|
    core.public_header_files = 'Core/Class/**/*.h'
    core.source_files = 'Core/Class/**/*.{h,m}'
  end
  
  #倒计时
  s.subspec 'CountDown' do |countDown|
    countDown.public_header_files = 'CountDown/**/*.h'
    countDown.source_files = 'CountDown/**/*.{h,m}'
  end
  
  #button
  s.subspec 'Button' do |button|
    button.public_header_files = 'Button/Class/**/*.h'
    button.source_files = 'Button/Class/**/*.{h,m}'
    button.dependency 'HHUIKit/Core'
  end
  
  #时间pick
  s.subspec 'Picker' do |picker|
    picker.public_header_files = 'Picker/Class/**/*.h'
    picker.source_files = 'Picker/Class/**/*.{h,m}'
    picker.dependency 'BCFoundation'
    picker.dependency 'BCUIKit'
    picker.dependency 'BCComConfigKit'
  end
  
  
  # 标签 view
  s.subspec 'TagList' do |taglist|
    taglist.public_header_files = 'TagList/HHTagList.h', 'TagList/Model/*.h', 'TagList/ListView/*.h', 'TagList/CollectionView/*.h'
    taglist.source_files = 'TagList/**/*.{h,m}'
    taglist.dependency 'BCFoundation'
  end
  
  # 头像 view
  s.subspec 'AvatarView' do |avatarView|
    avatarView.public_header_files = 'AvatarView/**/ZHAvatarUI.h', 'AvatarView/**/ZHAvatarView.h', 'AvatarView/**/ZHAvatarsView.h'
    avatarView.source_files = 'AvatarView/**/*.{h,m}'
    avatarView.dependency 'BCFoundation'
    avatarView.dependency 'HHUIKit/Core'
    avatarView.dependency 'Masonry'
    avatarView.dependency 'BCWebImageKit'
    avatarView.dependency 'BCComConfigKit'
  end

  
  # CollectionView layout
  s.subspec 'CollectionViewFlowLayout' do |collectionViewFlowLayout|
    collectionViewFlowLayout.public_header_files = 'CollectionViewFlowLayout/**/HHCollectionViewFlowLayout.h'
    collectionViewFlowLayout.source_files = 'CollectionViewFlowLayout/**/*.{h,m}'
  end
  
  # 可以显示复制的label
  s.subspec 'CopyLabel' do |copylabel|
    copylabel.public_header_files = 'CopyLabel/**/*.h'
    copylabel.source_files = 'CopyLabel/**/*.{h,m}'
  end
  
  # 新的AccessoryView
  s.subspec 'Accessory' do |accessory1|
      accessory1.public_header_files = 'Accessory/**/*.h'
      accessory1.source_files = 'Accessory/**/*.{h,m}'
      accessory1.dependency 'BCFoundation'
      accessory1.dependency 'Masonry'
      accessory1.dependency 'BCComConfigKit'
  end


  # Tableview Cell
  s.subspec 'TableViewCell' do |tableViewCell|
    tableViewCell.public_header_files = 'TableViewCell/Class/**/*.h'
    tableViewCell.source_files = 'TableViewCell/Class/**/*.{h,m}'
    tableViewCell.dependency 'BCComConfigKit'
    tableViewCell.dependency 'BCFoundation'
    tableViewCell.dependency 'Masonry'
  end
  
  # Collection Cell
  s.subspec 'CollectionCell' do |collectionCell|
    collectionCell.public_header_files = 'CollectionCell/Class/**/*.h'
    collectionCell.source_files = 'CollectionCell/Class/**/*.{h,m,swift}'
    collectionCell.dependency 'BCComConfigKit'
    collectionCell.dependency 'Masonry'
    collectionCell.dependency 'BCUIKit'
  end

  
  # cell
  s.subspec 'Transitioning' do |transitioning|
    transitioning.public_header_files = 'Transitioning/Class/**/*.h'
    transitioning.source_files = 'Transitioning/Class/**/*.{h,m}'
    transitioning.dependency 'BCFoundation'
    transitioning.dependency 'Masonry'
  end
  
  s.subspec 'TextView' do |textView|
    textView.public_header_files = 'TextView/**/*.h'
    textView.source_files = 'TextView/**/*.{h,m}'
    textView.dependency 'HHUIKit/Core'
  end

  # BadgeView
  s.subspec 'BadgeView' do |badgeView|
    badgeView.frameworks = 'QuartzCore'
    
    badgeView.public_header_files = 'BadgeView/**/*.h'
    badgeView.source_files = 'BadgeView/**/*.{h,m}'
  end

   # 广告轮播图
  s.subspec 'CycleScrollView' do |cycleScrollView|
    cycleScrollView.public_header_files = 'CycleScrollView/*.h'
    cycleScrollView.source_files = 'CycleScrollView/*.{h,m}'

    cycleScrollView.dependency 'BCComConfigKit'
    cycleScrollView.dependency 'BCWebImageKit/CoreNo'
  end

    # 自定义红点view
  s.subspec 'DotView' do |dotView|
    dotView.public_header_files = 'DotView/**/*.h'
    dotView.source_files = 'DotView/**/*.{h,m}'
  end

    # 支付弹框
  s.subspec 'PayView' do |payView|
    payView.source_files = 'PayView/**/*.{h,m,swift}'

    payView.dependency 'SnapKit'
    payView.dependency 'BCUIKit'
    payView.dependency 'BCFoundation'
  end

    # 活动弹框
  s.subspec 'ActiviteControl' do |activiteC|
    activiteC.source_files = 'ActiviteControl/**/*.{h,m}'

    activiteC.dependency 'BCUIKit'
    activiteC.dependency 'BCFoundation'
    activiteC.dependency 'BCWebImageKit'
    activiteC.dependency 'BCPopupScheduler'
  end

  #Popup View
  s.subspec 'PopupView' do |popupView|
    popupView.public_header_files = 'PopupView/**/ZHPopupMenu.h', 'PopupView/**/ZHPopupMenuItemModel.h', 'PopupView/**/ZHPopupMenuPublic.h'
    popupView.source_files = 'PopupView/**/*.{h,m}'
    popupView.dependency 'BCFoundation'
  end

    #PopTip
  s.subspec 'PopTipView' do |popTipView|
    popTipView.public_header_files = 'PopTipView/HHPopTipView.h'
    popTipView.source_files = 'PopTipView/**/*.{h,m}'
    
    popTipView.dependency 'BCFoundation'
  end

  s.subspec 'Alert' do |alert|
    alert.public_header_files = 'Alert/*.h'
    alert.source_files = 'Alert/**/*.{h,m}'
    
    alert.dependency 'BCFoundation'
    alert.dependency 'BCUIKit'
    alert.dependency 'Masonry'
  end

end
